import request from '@/utils/request'

export function getCertCategoryListApi(data) {
  return request({
    url: '/certseries/all/query',
    method: 'post',
    data
  })
}

export function deleteCertCategoryApi(data) {
  return request({
    url: '/certseries/deleteSeries',
    method: 'post',
    data
  })
}

export function createCertCategoryApi(data) {
  return request({
    url: '/certseries/save',
    method: 'post',
    data
  })
}

export function changeCertStatusApi(data) {
  return request({
    url: '/certseries/changeStatus',
    method: 'post',
    data
  })
}

export function updateCertStatusApi(data) {
  return request({
    url: '/certseries/update',
    method: 'post',
    data
  })
}

export function getThreeExamListApi(params) {
  return request({
    url: '/exam/list',
    method: 'get',
    params
  })
}

export function getCertListApi(data) {
  return request({
    url: '/certificate_new/page/query',
    method: 'post',
    data
  })
}

export function createCertApi(data) {
  return request({
    url: '/certificate_new/save',
    method: 'post',
    data
  })
}

export function deleteCertApi(data) {
  return request({
    url: '/certificate_new/delete',
    method: 'post',
    data
  })
}

export function updateCertApi(data) {
  return request({
    url: '/certificate_new/update',
    method: 'post',
    data
  })
}

export function queryAllTagListApi(data) {
  return request({
    url: '/certificate_new/queryAllTagList',
    method: 'post',
    data
  })
}

export function getThreeGoodsListApi(data) {
  return request({
    url: '/certificate_new/queryXiaoeGoodsList',
    method: 'post',
    data
  })
}
